package com.woniuxy.member.infra.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member")
public class Member implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户Id
     */
    @TableId(value = "member_id", type = IdType.AUTO)
    private Integer memberId;

    /**
     * 商家ID
     */
    private Integer storeId;

    /**
     * 角色ID
     */
    private Integer roleId;

    /**
     * 微信号
     */
    private String wechatNum;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 用户昵称
     */
    private String userName;

    /**
     * 会员等级
     */
    private Integer memberLevel;

    /**
     * 会员剩余积分
     */
    private Integer score;

    /**
     * 累积积分
     */
    private Integer totalScore;

    /**
     * 用户头像
     */
    private String memberImg;

    /**
     * 微信授权码
     */
    private String openId;


}
